Remove wget. replaces with the python native "requests" library#293
Open
richard087 wants to merge 3 commits intoSylphAI-Inc:mainfrom
Open
Remove wget. replaces with the python native "requests" library#293richard087 wants to merge 3 commits intoSylphAI-Inc:mainfrom
richard087 wants to merge 3 commits intoSylphAI-Inc:mainfrom
Conversation
Author
|
tested using code: from adalflow.datasets.big_bench_hard import BigBenchHard
import difflib
def check_datasets():
train_data = BigBenchHard(split="train")
expected = r"Example(id='a6d1c6de-4ff5-4f7f-a316-723c566645ea', question='I have a flute, a piano, a trombone, four stoves, a violin, an accordion, a clarinet, a drum, two lamps, and a trumpet. How many musical instruments do I have?', answer='8')"
cases = [(str(expected), str(train_data[0]))]
if train_data[0] == expected :
print("Winner, winner! Chicken dinner!")
else:
for a,b in cases:
print('{} => {}'.format(a,b))
for i,s in enumerate(difflib.ndiff(a,b)):
if s[0]==' ':
print(u'No change "{}" from position {}'.format(s[-1],i))
elif s[0]=='-':
print(u'Delete "{}" from position {}'.format(s[-1],i))
elif s[0]=='+':
print(u'Add "{}" to position {}'.format(s[-1],i))
check_datasets() |
liyin2015
reviewed
Feb 10, 2025
| python = ">=3.11, <4.0" | ||
| adalflow = { path = "adalflow", develop = true } | ||
| openai = "^1.34.0" | ||
| requests = "^2.32.3" |
Member
There was a problem hiding this comment.
this should be added inside of adalflow/pyproject.toml instead of the root project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes #292
Before submitting