Spaces:
Sleeping
Sleeping
init tools
Browse files- app.py +16 -16
- tools/tools.py +0 -0
app.py
CHANGED
@@ -145,23 +145,25 @@ def test_init_agent_for_chat(text_input, history):
|
|
145 |
# --- Build Gradio Interface using Blocks ---
|
146 |
with gr.Blocks() as demo:
|
147 |
gr.Markdown("# Basic Agent Evaluation Runner")
|
148 |
-
gr.Markdown(
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
)
|
162 |
|
163 |
gr.LoginButton()
|
164 |
|
|
|
|
|
165 |
# run_button = gr.Button("Run Evaluation & Submit All Answers")
|
166 |
|
167 |
# status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
|
@@ -173,8 +175,6 @@ with gr.Blocks() as demo:
|
|
173 |
# outputs=[status_output, results_table]
|
174 |
# )
|
175 |
|
176 |
-
gr.ChatInterface(test_init_agent_for_chat, type="messages")
|
177 |
-
|
178 |
|
179 |
if __name__ == "__main__":
|
180 |
print("\n" + "-"*30 + " App Starting " + "-"*30)
|
|
|
145 |
# --- Build Gradio Interface using Blocks ---
|
146 |
with gr.Blocks() as demo:
|
147 |
gr.Markdown("# Basic Agent Evaluation Runner")
|
148 |
+
# gr.Markdown(
|
149 |
+
# """
|
150 |
+
# **Instructions:**
|
151 |
+
|
152 |
+
# 1. Please clone this space, then modify the code to define your agent's logic, the tools, the necessary packages, etc ...
|
153 |
+
# 2. Log in to your Hugging Face account using the button below. This uses your HF username for submission.
|
154 |
+
# 3. Click 'Run Evaluation & Submit All Answers' to fetch questions, run your agent, submit answers, and see the score.
|
155 |
+
|
156 |
+
# ---
|
157 |
+
# **Disclaimers:**
|
158 |
+
# Once clicking on the "submit button, it can take quite some time ( this is the time for the agent to go through all the questions).
|
159 |
+
# This space provides a basic setup and is intentionally sub-optimal to encourage you to develop your own, more robust solution. For instance for the delay process of the submit button, a solution could be to cache the answers and submit in a seperate action or even to answer the questions in async.
|
160 |
+
# """
|
161 |
+
# )
|
162 |
|
163 |
gr.LoginButton()
|
164 |
|
165 |
+
gr.ChatInterface(test_init_agent_for_chat, type="messages")
|
166 |
+
|
167 |
# run_button = gr.Button("Run Evaluation & Submit All Answers")
|
168 |
|
169 |
# status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
|
|
|
175 |
# outputs=[status_output, results_table]
|
176 |
# )
|
177 |
|
|
|
|
|
178 |
|
179 |
if __name__ == "__main__":
|
180 |
print("\n" + "-"*30 + " App Starting " + "-"*30)
|
tools/tools.py
ADDED
File without changes
|