Spaces:
Runtime error
Runtime error
fixed readme
Browse files- README.md +7 -2
- app.py +2 -0
- opentools/__pycache__/__init__.cpython-310.pyc +0 -0
- opentools/engine/__pycache__/__init__.cpython-310.pyc +0 -0
- opentools/engine/__pycache__/base.cpython-310.pyc +0 -0
- opentools/engine/__pycache__/openai.cpython-310.pyc +0 -0
- opentools/models/__pycache__/__init__.cpython-310.pyc +0 -0
- opentools/models/__pycache__/executor.cpython-310.pyc +0 -0
- opentools/models/__pycache__/formatters.cpython-310.pyc +0 -0
- opentools/models/__pycache__/initializer.cpython-310.pyc +0 -0
- opentools/models/__pycache__/memory.cpython-310.pyc +0 -0
- opentools/models/__pycache__/planner.cpython-310.pyc +0 -0
- opentools/models/__pycache__/utils.cpython-310.pyc +0 -0
- opentools/models/__pycache__/utlis.cpython-310.pyc +0 -0
- opentools/tools/__pycache__/__init__.cpython-310.pyc +0 -0
- opentools/tools/__pycache__/base.cpython-310.pyc +0 -0
- opentools/tools/generalist_solution_generator/__pycache__/tool.cpython-310.pyc +0 -0
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 💻
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: purple
|
|
@@ -9,4 +9,9 @@ app_file: app.py
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: OctoTools
|
| 3 |
emoji: 💻
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: purple
|
|
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
|
| 13 |
+
### Reference
|
| 14 |
+
|
| 15 |
+
- https://www.gradio.app/guides/agents-and-tool-usage
|
| 16 |
+
|
| 17 |
+
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -7,6 +7,7 @@ import io
|
|
| 7 |
import uuid
|
| 8 |
from PIL import Image
|
| 9 |
from typing import List, Dict, Any, Iterator
|
|
|
|
| 10 |
import gradio as gr
|
| 11 |
from gradio import ChatMessage
|
| 12 |
|
|
@@ -295,6 +296,7 @@ def main(args):
|
|
| 295 |
|
| 296 |
# Link button click to function
|
| 297 |
run_button.click(fn=solve_problem_gradio, inputs=[user_query, user_image, max_steps, max_time, api_key], outputs=chatbot_output)
|
|
|
|
| 298 |
|
| 299 |
# Launch the Gradio app
|
| 300 |
demo.launch()
|
|
|
|
| 7 |
import uuid
|
| 8 |
from PIL import Image
|
| 9 |
from typing import List, Dict, Any, Iterator
|
| 10 |
+
|
| 11 |
import gradio as gr
|
| 12 |
from gradio import ChatMessage
|
| 13 |
|
|
|
|
| 296 |
|
| 297 |
# Link button click to function
|
| 298 |
run_button.click(fn=solve_problem_gradio, inputs=[user_query, user_image, max_steps, max_time, api_key], outputs=chatbot_output)
|
| 299 |
+
# ========== Gradio Interface ==========
|
| 300 |
|
| 301 |
# Launch the Gradio app
|
| 302 |
demo.launch()
|
opentools/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (151 Bytes). View file
|
|
|
opentools/engine/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (158 Bytes). View file
|
|
|
opentools/engine/__pycache__/base.cpython-310.pyc
ADDED
|
Binary file (2.1 kB). View file
|
|
|
opentools/engine/__pycache__/openai.cpython-310.pyc
ADDED
|
Binary file (6.3 kB). View file
|
|
|
opentools/models/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (158 Bytes). View file
|
|
|
opentools/models/__pycache__/executor.cpython-310.pyc
ADDED
|
Binary file (9.81 kB). View file
|
|
|
opentools/models/__pycache__/formatters.cpython-310.pyc
ADDED
|
Binary file (1.42 kB). View file
|
|
|
opentools/models/__pycache__/initializer.cpython-310.pyc
ADDED
|
Binary file (5.07 kB). View file
|
|
|
opentools/models/__pycache__/memory.cpython-310.pyc
ADDED
|
Binary file (3.6 kB). View file
|
|
|
opentools/models/__pycache__/planner.cpython-310.pyc
ADDED
|
Binary file (15 kB). View file
|
|
|
opentools/models/__pycache__/utils.cpython-310.pyc
ADDED
|
Binary file (1.66 kB). View file
|
|
|
opentools/models/__pycache__/utlis.cpython-310.pyc
ADDED
|
Binary file (1.66 kB). View file
|
|
|
opentools/tools/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (157 Bytes). View file
|
|
|
opentools/tools/__pycache__/base.cpython-310.pyc
ADDED
|
Binary file (3.9 kB). View file
|
|
|
opentools/tools/generalist_solution_generator/__pycache__/tool.cpython-310.pyc
ADDED
|
Binary file (4.58 kB). View file
|
|
|