Upload folder using huggingface_hub
Browse files
.ipynb_checkpoints/requirements-checkpoint.txt
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
langchain crewai
|
2 |
+
wolframalpha duckduckgo-search
|
3 |
+
'crewai[tools]'
|
4 |
+
beautifulsoup4 requests lxml
|
5 |
+
langchain-community
|
6 |
+
huggingface_hub
|
7 |
+
google-api-python-client google-auth-httplib2 google-auth-oauthlib
|
.ipynb_checkpoints/test_gradio-checkpoint.py
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# import gradio as gr
|
2 |
+
|
3 |
+
# def greet(name, intensity):
|
4 |
+
# return "Hello, " + name + "!" * int(intensity)
|
5 |
+
|
6 |
+
# def llm_inference(next):
|
7 |
+
|
8 |
+
|
9 |
+
# demo = gr.Interface(
|
10 |
+
# fn=greet,
|
11 |
+
# inputs=["text"],
|
12 |
+
# outputs=["text"],
|
13 |
+
# )
|
14 |
+
|
15 |
+
# demo.launch(share=True)
|
16 |
+
|
17 |
+
import random
|
18 |
+
|
19 |
+
def random_response(message, history):
|
20 |
+
return random.choice(["Yes", "No"])
|
21 |
+
|
22 |
+
import gradio as gr
|
23 |
+
|
24 |
+
gr.ChatInterface(random_response).launch()
|
requirements.txt
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
langchain crewai
|
2 |
+
wolframalpha duckduckgo-search
|
3 |
+
'crewai[tools]'
|
4 |
+
beautifulsoup4 requests lxml
|
5 |
+
langchain-community
|
6 |
+
huggingface_hub
|
7 |
+
google-api-python-client google-auth-httplib2 google-auth-oauthlib
|
test_gradio.py
CHANGED
@@ -1,12 +1,24 @@
|
|
1 |
-
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
4 |
-
return "Hello, " + name + "!" * int(intensity)
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
11 |
|
12 |
-
|
|
|
1 |
+
# import gradio as gr
|
2 |
+
|
3 |
+
# def greet(name, intensity):
|
4 |
+
# return "Hello, " + name + "!" * int(intensity)
|
5 |
+
|
6 |
+
# def llm_inference(next):
|
7 |
+
|
8 |
+
|
9 |
+
# demo = gr.Interface(
|
10 |
+
# fn=greet,
|
11 |
+
# inputs=["text"],
|
12 |
+
# outputs=["text"],
|
13 |
+
# )
|
14 |
|
15 |
+
# demo.launch(share=True)
|
|
|
16 |
|
17 |
+
import random
|
18 |
+
|
19 |
+
def random_response(message, history):
|
20 |
+
return random.choice(["Yes", "No"])
|
21 |
+
|
22 |
+
import gradio as gr
|
23 |
|
24 |
+
gr.ChatInterface(random_response).launch()
|