Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def generate_text(input_text):
|
| 4 |
+
model = gr.load("models/cognitivecomputations/WestLake-7B-v2-laser")
|
| 5 |
+
return model.generate(input_text)
|
| 6 |
+
|
| 7 |
+
iface = gr.Interface(fn=generate_text, inputs="text", outputs="text")
|
| 8 |
+
iface.launch()
|