Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import os
|
2 |
import shutil
|
3 |
import gradio as gr
|
4 |
-
from transformers import ReactCodeAgent,
|
5 |
import pandas as pd
|
6 |
|
7 |
from gradio import Chatbot
|
@@ -11,7 +11,7 @@ from gradio.data_classes import FileData
|
|
11 |
|
12 |
login(os.getenv("HUGGINGFACEHUB_API_TOKEN"))
|
13 |
|
14 |
-
llm_engine =
|
15 |
|
16 |
agent = ReactCodeAgent(
|
17 |
tools=[],
|
|
|
1 |
import os
|
2 |
import shutil
|
3 |
import gradio as gr
|
4 |
+
from transformers import ReactCodeAgent, HfApiEngine, Tool
|
5 |
import pandas as pd
|
6 |
|
7 |
from gradio import Chatbot
|
|
|
11 |
|
12 |
login(os.getenv("HUGGINGFACEHUB_API_TOKEN"))
|
13 |
|
14 |
+
llm_engine = HfApiEngine("meta-llama/Meta-Llama-3.1-70B-Instruct")
|
15 |
|
16 |
agent = ReactCodeAgent(
|
17 |
tools=[],
|