Spaces:
Build error
Build error
Update src/litbench_pipeline.py
Browse files- src/litbench_pipeline.py +2 -2
src/litbench_pipeline.py
CHANGED
|
@@ -64,7 +64,7 @@ def update_button_styles(selected_task):
|
|
| 64 |
"""Update button styles based on selection."""
|
| 65 |
return [gr.update(variant="primary" if selected_task == prompt else "secondary") for prompt in task_list]
|
| 66 |
|
| 67 |
-
|
| 68 |
# Fetch and store arXiv source files
|
| 69 |
def fetch_arxiv_papers(papers_to_download):
|
| 70 |
# Download the arXiv metadata file if it doesn't exist
|
|
@@ -311,7 +311,7 @@ def fetch_arxiv_papers(papers_to_download):
|
|
| 311 |
|
| 312 |
|
| 313 |
# Chat prediction function
|
| 314 |
-
@spaces.GPU
|
| 315 |
def predict(message, history, selected_task):
|
| 316 |
global model
|
| 317 |
# Initialize the conversation string
|
|
|
|
| 64 |
"""Update button styles based on selection."""
|
| 65 |
return [gr.update(variant="primary" if selected_task == prompt else "secondary") for prompt in task_list]
|
| 66 |
|
| 67 |
+
@spaces.CPU
|
| 68 |
# Fetch and store arXiv source files
|
| 69 |
def fetch_arxiv_papers(papers_to_download):
|
| 70 |
# Download the arXiv metadata file if it doesn't exist
|
|
|
|
| 311 |
|
| 312 |
|
| 313 |
# Chat prediction function
|
| 314 |
+
@spaces.GPU(duration=120)
|
| 315 |
def predict(message, history, selected_task):
|
| 316 |
global model
|
| 317 |
# Initialize the conversation string
|