Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,6 @@ import pickle
|
|
9 |
import sys
|
10 |
import subprocess
|
11 |
|
12 |
-
from matplotlib import pyplot as plt
|
13 |
-
|
14 |
import gradio as gr
|
15 |
import numpy as np
|
16 |
import torch
|
@@ -115,11 +113,8 @@ def main():
|
|
115 |
#server_port=args.port,
|
116 |
#share=args.share,
|
117 |
#)
|
118 |
-
|
119 |
-
|
120 |
-
plt.figure(figsize=(10, 10))
|
121 |
-
plt.imshow(imgs_arr[0])
|
122 |
-
plt.show()
|
123 |
if __name__ == '__main__':
|
124 |
main()
|
125 |
|
|
|
9 |
import sys
|
10 |
import subprocess
|
11 |
|
|
|
|
|
12 |
import gradio as gr
|
13 |
import numpy as np
|
14 |
import torch
|
|
|
113 |
#server_port=args.port,
|
114 |
#share=args.share,
|
115 |
#)
|
116 |
+
demo = gr.Interface(fn=image_create, inputs="text", outputs="image")
|
117 |
+
demo.launch()
|
|
|
|
|
|
|
118 |
if __name__ == '__main__':
|
119 |
main()
|
120 |
|