bacchi87 commited on
Commit
0ba6cb0
·
verified ·
1 Parent(s): d4f59bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -2,6 +2,7 @@ import os
2
  import requests
3
  import pandas as pd
4
  import gradio as gr
 
5
 
6
  from io import BytesIO
7
  from smolagents import CodeAgent, DuckDuckGoSearchTool, OpenAIServerModel
@@ -81,6 +82,7 @@ Do not write FINAL ANSWER.
81
  return f"Agent error: {e}"
82
 
83
 
 
84
  def run_evaluation(profile: gr.OAuthProfile | None):
85
 
86
  if profile is None:
 
2
  import requests
3
  import pandas as pd
4
  import gradio as gr
5
+ import spaces
6
 
7
  from io import BytesIO
8
  from smolagents import CodeAgent, DuckDuckGoSearchTool, OpenAIServerModel
 
82
  return f"Agent error: {e}"
83
 
84
 
85
+ @spaces.GPU
86
  def run_evaluation(profile: gr.OAuthProfile | None):
87
 
88
  if profile is None: