Spaces:
Sleeping
Sleeping
personalised
Browse files
app.py
CHANGED
@@ -1,3 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def my_function(input):
|
4 |
+
# Include your name in the output or any other specific logic you want
|
5 |
+
return f"Processed by Aumkar's model: {input}"
|
6 |
+
|
7 |
+
# Load the FLAN-T5 model
|
8 |
+
model = gr.load("models/google/flan-t5-large")
|
9 |
+
|
10 |
+
# Create an interface with your custom function
|
11 |
+
interface = gr.Interface(fn=my_function, inputs="text", outputs="text")
|
12 |
+
|
13 |
+
# Launch the interface
|
14 |
+
interface.launch(share=True)
|