Facelook commited on
Commit
923bcef
·
1 Parent(s): 12c0a52

Trial and error.

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,9 +1,7 @@
1
  import os
2
  import gradio as gr
3
  import requests
4
- import inspect
5
  import pandas as pd
6
- from huggingface_hub import InferenceClient # Import Hugging Face InferenceClient
7
  from openai import OpenAI
8
 
9
  # (Keep Constants as is)
@@ -37,7 +35,7 @@ class BasicAgent:
37
  messages=[
38
  {
39
  "role": "system",
40
- "content": "Answer the following question with EXACT ANSWER with no explanation, introduction, or conclusions. Answer shall be in the same language as the question."
41
  },
42
  {
43
  "role": "user",
@@ -198,7 +196,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
198
 
199
  # --- Build Gradio Interface using Blocks ---
200
  with gr.Blocks() as demo:
201
- gr.Markdown("# Basic Agent Evaluation Runner #23")
202
  gr.Markdown(
203
  """
204
  **Instructions:**
 
1
  import os
2
  import gradio as gr
3
  import requests
 
4
  import pandas as pd
 
5
  from openai import OpenAI
6
 
7
  # (Keep Constants as is)
 
35
  messages=[
36
  {
37
  "role": "system",
38
+ "content": "Identify the language of the following question. Answer the following question with EXACT ANSWER in the same language as the question, with no explanation, introduction, or conclusions. Search the Internet and Wikipedia if needed.",
39
  },
40
  {
41
  "role": "user",
 
196
 
197
  # --- Build Gradio Interface using Blocks ---
198
  with gr.Blocks() as demo:
199
+ gr.Markdown("# Basic Agent Evaluation Runner #24")
200
  gr.Markdown(
201
  """
202
  **Instructions:**