Trial and error.
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ class BasicAgent:
|
|
18 |
print("BasicAgent initialized.")
|
19 |
|
20 |
print("Loading huggingface default model...")
|
21 |
-
self.client = InferenceClient(token=os.getenv("HF_TOKEN"))
|
22 |
|
23 |
def __call__(self, question: str) -> str:
|
24 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
@@ -169,7 +169,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
169 |
|
170 |
# --- Build Gradio Interface using Blocks ---
|
171 |
with gr.Blocks() as demo:
|
172 |
-
gr.Markdown("# Basic Agent Evaluation Runner #
|
173 |
gr.Markdown(
|
174 |
"""
|
175 |
**Instructions:**
|
|
|
18 |
print("BasicAgent initialized.")
|
19 |
|
20 |
print("Loading huggingface default model...")
|
21 |
+
self.client = InferenceClient(model="mistralai/Mistral-7B-Instruct-v0.3", token=os.getenv("HF_TOKEN"))
|
22 |
|
23 |
def __call__(self, question: str) -> str:
|
24 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
|
|
169 |
|
170 |
# --- Build Gradio Interface using Blocks ---
|
171 |
with gr.Blocks() as demo:
|
172 |
+
gr.Markdown("# Basic Agent Evaluation Runner #12")
|
173 |
gr.Markdown(
|
174 |
"""
|
175 |
**Instructions:**
|