Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
import requests
|
| 3 |
import pandas as pd
|
| 4 |
import gradio as gr
|
|
|
|
| 5 |
from io import BytesIO
|
| 6 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel
|
| 7 |
|
|
@@ -69,6 +70,7 @@ Do not write FINAL ANSWER.
|
|
| 69 |
return f"Agent error: {e}"
|
| 70 |
|
| 71 |
|
|
|
|
| 72 |
def run_evaluation(profile: gr.OAuthProfile | None):
|
| 73 |
if profile is None:
|
| 74 |
return "Please login with Hugging Face.", []
|
|
|
|
| 2 |
import requests
|
| 3 |
import pandas as pd
|
| 4 |
import gradio as gr
|
| 5 |
+
import spaces
|
| 6 |
from io import BytesIO
|
| 7 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel
|
| 8 |
|
|
|
|
| 70 |
return f"Agent error: {e}"
|
| 71 |
|
| 72 |
|
| 73 |
+
@spaces.GPU
|
| 74 |
def run_evaluation(profile: gr.OAuthProfile | None):
|
| 75 |
if profile is None:
|
| 76 |
return "Please login with Hugging Face.", []
|