Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ def init():
|
|
15 |
#raise ValueError("HUGGINGFACE_TOKEN environment variable is not set")
|
16 |
|
17 |
model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
|
|
|
18 |
|
19 |
device = "auto" # torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
20 |
#device = "cuda"
|
@@ -87,7 +88,9 @@ def call_generate_text(message, history):
|
|
87 |
js = """
|
88 |
console.log('hello js')
|
89 |
"""
|
90 |
-
|
|
|
|
|
91 |
|
92 |
if __name__ == "__main__":
|
93 |
init()
|
|
|
15 |
#raise ValueError("HUGGINGFACE_TOKEN environment variable is not set")
|
16 |
|
17 |
model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
|
18 |
+
model_id = "google/gemma-2b"
|
19 |
|
20 |
device = "auto" # torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
21 |
#device = "cuda"
|
|
|
88 |
js = """
|
89 |
console.log('hello js')
|
90 |
"""
|
91 |
+
chatbot = gr.Chatbot()
|
92 |
+
|
93 |
+
demo = gr.ChatInterface(call_generate_text,chatbot=chatbot,type="messages")
|
94 |
|
95 |
if __name__ == "__main__":
|
96 |
init()
|