Trial and error.
Browse files
app.py
CHANGED
|
@@ -32,14 +32,7 @@ class BasicAgent:
|
|
| 32 |
|
| 33 |
# Generate response
|
| 34 |
print("Using Inference API for generation...")
|
| 35 |
-
response = self.client.text_generation(
|
| 36 |
-
prompt=question,
|
| 37 |
-
model="meta-llama/Llama-3-8B-Instruct", # Free model
|
| 38 |
-
max_new_tokens=500,
|
| 39 |
-
temperature=0.7,
|
| 40 |
-
do_sample=True,
|
| 41 |
-
repetition_penalty=1.2
|
| 42 |
-
)
|
| 43 |
print(f"Inference API response received.")
|
| 44 |
answer = response
|
| 45 |
print(f"Agent generated response (first 50 chars): {answer[:50]}...")
|
|
@@ -176,7 +169,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 176 |
|
| 177 |
# --- Build Gradio Interface using Blocks ---
|
| 178 |
with gr.Blocks() as demo:
|
| 179 |
-
gr.Markdown("# Basic Agent Evaluation Runner #
|
| 180 |
gr.Markdown(
|
| 181 |
"""
|
| 182 |
**Instructions:**
|
|
|
|
| 32 |
|
| 33 |
# Generate response
|
| 34 |
print("Using Inference API for generation...")
|
| 35 |
+
response = self.client.text_generation(question)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
print(f"Inference API response received.")
|
| 37 |
answer = response
|
| 38 |
print(f"Agent generated response (first 50 chars): {answer[:50]}...")
|
|
|
|
| 169 |
|
| 170 |
# --- Build Gradio Interface using Blocks ---
|
| 171 |
with gr.Blocks() as demo:
|
| 172 |
+
gr.Markdown("# Basic Agent Evaluation Runner #11")
|
| 173 |
gr.Markdown(
|
| 174 |
"""
|
| 175 |
**Instructions:**
|