Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
from e2b_code_interpreter import Sandbox
|
@@ -6,6 +7,10 @@ from utils import run_interactive_notebook
|
|
6 |
|
7 |
message_history = None
|
8 |
|
|
|
|
|
|
|
|
|
9 |
def execute_jupyter_agent(sytem_prompt, user_input):
|
10 |
client = InferenceClient(api_key=HF_TOKEN)
|
11 |
max_new_tokens = 512
|
|
|
1 |
+
import os
|
2 |
import gradio as gr
|
3 |
from huggingface_hub import InferenceClient
|
4 |
from e2b_code_interpreter import Sandbox
|
|
|
7 |
|
8 |
message_history = None
|
9 |
|
10 |
+
E2B_API_KEY = os.environ['E2B_API_KEY']
|
11 |
+
HF_TOKEN = os.environ['HF_TOKEN']
|
12 |
+
|
13 |
+
|
14 |
def execute_jupyter_agent(sytem_prompt, user_input):
|
15 |
client = InferenceClient(api_key=HF_TOKEN)
|
16 |
max_new_tokens = 512
|