simplify
Browse files
app.py
CHANGED
|
@@ -1,14 +1,3 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from transformers import pipeline
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
def generate(input):
|
| 7 |
-
return generator(
|
| 8 |
-
input,
|
| 9 |
-
max_length=10,
|
| 10 |
-
num_return_sequences=1,
|
| 11 |
-
)
|
| 12 |
-
|
| 13 |
-
iface = gr.Interface(fn=generate, inputs="text", outputs="text")
|
| 14 |
-
iface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
+
gr.load("models/AdaptLLM/law-LLM").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|