Spaces:
Runtime error
Runtime error
srijansengupta
commited on
Commit
•
b578fa4
1
Parent(s):
c83976d
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer
|
2 |
import os
|
3 |
|
4 |
model = AutoModelForCausalLM.from_pretrained(
|
@@ -37,4 +37,8 @@ def greet(prompt):
|
|
37 |
return response
|
38 |
|
39 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
40 |
-
demo.launch(share=True)
|
|
|
|
|
|
|
|
|
|
1 |
+
"""from transformers import AutoModelForCausalLM, AutoTokenizer
|
2 |
import os
|
3 |
|
4 |
model = AutoModelForCausalLM.from_pretrained(
|
|
|
37 |
return response
|
38 |
|
39 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
40 |
+
demo.launch(share=True)"""
|
41 |
+
|
42 |
+
import gradio as gr
|
43 |
+
|
44 |
+
gr.load("models/Qwen/CodeQwen1.5-7B-Chat").launch(share=True)
|