Spaces:
Sleeping
Sleeping
Daniel Nichols
commited on
Commit
·
837a7fe
1
Parent(s):
ae18ce3
update wording to remove perfguru references
Browse files- src/perfguru.py +4 -4
src/perfguru.py
CHANGED
@@ -115,9 +115,9 @@ def handle_vote(prompt, vote, response1, source1, full_prompt1, response2, sourc
|
|
115 |
# Define the Gradio interface
|
116 |
with gr.Blocks(css=".not-voted p { color: black; } .voted p { color: green; } .response { padding: 25px; } .response-md { padding: 20px; }") as interface:
|
117 |
|
118 |
-
gr.Markdown("""#
|
119 |
|
120 |
-
Welcome to
|
121 |
|
122 |
This is a tool for assisting developers in identifying performance bottlenecks in their code and optimizing them using LLMs.
|
123 |
Upload your code files and a performance profile (if available) to get started. Then ask away!
|
@@ -139,13 +139,13 @@ with gr.Blocks(css=".not-voted p { color: black; } .voted p { color: green; } .r
|
|
139 |
gr.Markdown("---")
|
140 |
gr.Markdown("""## Ask a Question
|
141 |
|
142 |
-
Now you can ask a question about your code performance
|
143 |
Once you receive two responses, vote on which one you found more helpful.""")
|
144 |
|
145 |
default_question = "Can you help me identify and fix performance bugs in this code?"
|
146 |
prompt = gr.Textbox(label="Ask a question about your code performance", value=default_question)
|
147 |
|
148 |
-
chat_button = gr.Button("Chat
|
149 |
with gr.Row(equal_height=True):
|
150 |
with gr.Column():
|
151 |
with gr.Accordion("Response 1", elem_classes=["response"]):
|
|
|
115 |
# Define the Gradio interface
|
116 |
with gr.Blocks(css=".not-voted p { color: black; } .voted p { color: green; } .response { padding: 25px; } .response-md { padding: 20px; }") as interface:
|
117 |
|
118 |
+
gr.Markdown("""# Code Performance Chatbot
|
119 |
|
120 |
+
Welcome to the performance analysis chatbot!
|
121 |
|
122 |
This is a tool for assisting developers in identifying performance bottlenecks in their code and optimizing them using LLMs.
|
123 |
Upload your code files and a performance profile (if available) to get started. Then ask away!
|
|
|
139 |
gr.Markdown("---")
|
140 |
gr.Markdown("""## Ask a Question
|
141 |
|
142 |
+
Now you can ask a question about your code performance!
|
143 |
Once you receive two responses, vote on which one you found more helpful.""")
|
144 |
|
145 |
default_question = "Can you help me identify and fix performance bugs in this code?"
|
146 |
prompt = gr.Textbox(label="Ask a question about your code performance", value=default_question)
|
147 |
|
148 |
+
chat_button = gr.Button("Chat About Performance", interactive=False)
|
149 |
with gr.Row(equal_height=True):
|
150 |
with gr.Column():
|
151 |
with gr.Accordion("Response 1", elem_classes=["response"]):
|