m-ric HF staff commited on
Commit
eface5d
β€’
1 Parent(s): 9b35d3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import os
2
  import shutil
3
  import gradio as gr
4
- from transformers import ReactCodeAgent, HfEngine, Tool
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 = HfEngine("meta-llama/Meta-Llama-3.1-70B-Instruct")
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=[],