Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,6 +16,7 @@ from langchain_core.tools import tool
|
|
| 16 |
from langchain.tools.retriever import create_retriever_tool
|
| 17 |
from supabase.client import Client, create_client
|
| 18 |
import json
|
|
|
|
| 19 |
import google.generativeai as genai
|
| 20 |
import gradio as gr
|
| 21 |
from typing import Literal
|
|
@@ -601,7 +602,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 601 |
|
| 602 |
try:
|
| 603 |
agent = BasicAgent()
|
| 604 |
-
agent_code = f"https://huggingface.co/spaces/
|
| 605 |
|
| 606 |
# Fetch questions
|
| 607 |
response = requests.get(f"{api_url}/questions", timeout=15)
|
|
|
|
| 16 |
from langchain.tools.retriever import create_retriever_tool
|
| 17 |
from supabase.client import Client, create_client
|
| 18 |
import json
|
| 19 |
+
import requests
|
| 20 |
import google.generativeai as genai
|
| 21 |
import gradio as gr
|
| 22 |
from typing import Literal
|
|
|
|
| 602 |
|
| 603 |
try:
|
| 604 |
agent = BasicAgent()
|
| 605 |
+
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 606 |
|
| 607 |
# Fetch questions
|
| 608 |
response = requests.get(f"{api_url}/questions", timeout=15)
|