Spaces:
Sleeping
Sleeping
tried to change the ui a bit , making similar to the colab notebook
Browse files
app.py
CHANGED
|
@@ -149,20 +149,20 @@ def chatbot(message, history):
|
|
| 149 |
|
| 150 |
return total_text
|
| 151 |
|
| 152 |
-
iface = gr.
|
| 153 |
-
|
| 154 |
-
inputs="text",
|
| 155 |
-
outputs="text",
|
| 156 |
title="LLM Research Assistant",
|
| 157 |
description="Ask questions about LLM architectures, datasets, and training techniques.",
|
| 158 |
examples=[
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
],
|
| 165 |
-
|
|
|
|
|
|
|
| 166 |
)
|
| 167 |
|
| 168 |
if __name__ == "__main__":
|
|
|
|
| 149 |
|
| 150 |
return total_text
|
| 151 |
|
| 152 |
+
iface = gr.ChatInterface(
|
| 153 |
+
chatbot,
|
|
|
|
|
|
|
| 154 |
title="LLM Research Assistant",
|
| 155 |
description="Ask questions about LLM architectures, datasets, and training techniques.",
|
| 156 |
examples=[
|
| 157 |
+
"What are some milestone model architectures in LLMs?",
|
| 158 |
+
"Explain the transformer architecture.",
|
| 159 |
+
"Tell me about datasets used to train LLMs.",
|
| 160 |
+
"How are LLM training datasets cleaned and preprocessed?",
|
| 161 |
+
"Summarize the user queries so far"
|
| 162 |
],
|
| 163 |
+
retry_btn="Regenerate",
|
| 164 |
+
undo_btn="Undo",
|
| 165 |
+
clear_btn="Clear",
|
| 166 |
)
|
| 167 |
|
| 168 |
if __name__ == "__main__":
|