Spaces:
Sleeping
Sleeping
ngoctuanai
commited on
Commit
·
5b30198
1
Parent(s):
9ce81f8
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
# Load
|
4 |
-
|
5 |
|
6 |
# Custom HTML and CSS for styling
|
7 |
custom_html = """
|
@@ -40,5 +40,6 @@ custom_html = """
|
|
40 |
</html>
|
41 |
"""
|
42 |
|
43 |
-
#
|
44 |
-
iface.
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
# Load the RunwayML model using Gradio
|
4 |
+
model = gr.load("models/runwayml/stable-diffusion-v1-5")
|
5 |
|
6 |
# Custom HTML and CSS for styling
|
7 |
custom_html = """
|
|
|
40 |
</html>
|
41 |
"""
|
42 |
|
43 |
+
# Launch the interface with the loaded model and custom styling
|
44 |
+
iface = gr.Interface(fn=model, inputs=model.interface.inputs, outputs=model.interface.outputs)
|
45 |
+
iface.share(html=custom_html)
|