Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,18 +3,17 @@ import datetime
|
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
-
import load_tool , tool
|
| 7 |
from tools.final_answer import FinalAnswerTool
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
-
textgen = load_tool("text-heneration"
|
| 12 |
-
|
| 13 |
|
| 14 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 15 |
|
| 16 |
@tool
|
| 17 |
-
def
|
| 18 |
"""
|
| 19 |
Ask any general question and get and AI-generated answer.
|
| 20 |
"""
|
|
|
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
import yaml
|
|
|
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
+
textgen = load_tool("text-heneration",
|
| 11 |
+
model="meta-llama/Llama-3-8B-Instruct"")
|
| 12 |
|
| 13 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 14 |
|
| 15 |
@tool
|
| 16 |
+
def ask_question(question: str)-> str:
|
| 17 |
"""
|
| 18 |
Ask any general question and get and AI-generated answer.
|
| 19 |
"""
|