Spaces:
Runtime error
Runtime error
Satyam-Singh
commited on
Create chatbot.py
Browse files- chatbot.py +13 -0
chatbot.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from gemma_model import generate_text
|
3 |
+
|
4 |
+
chatbot = gr.Chatbot(
|
5 |
+
generate_text,
|
6 |
+
title="Gemma-2B-IT Chatbot",
|
7 |
+
description="Talk to the Gemma-2B-IT model!",
|
8 |
+
width=800,
|
9 |
+
height=600,
|
10 |
+
)
|
11 |
+
|
12 |
+
if __name__ == "__main__":
|
13 |
+
chatbot.launch()
|