Spaces:
Sleeping
Sleeping
change name of comet logging module
Browse files- app.py +12 -3
- logging.py β comet.py +0 -0
app.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
import uuid
|
2 |
-
from logging import get_experiment, get_experiment_status, start_experiment
|
3 |
|
4 |
import gradio as gr
|
5 |
import pandas as pd
|
6 |
from PIL import Image
|
7 |
from transformers import CLIPModel, CLIPProcessor
|
8 |
|
|
|
|
|
9 |
CLIP_MODEL_PATH = "openai/clip-vit-base-patch32"
|
10 |
|
11 |
clip_model = CLIPModel.from_pretrained(CLIP_MODEL_PATH)
|
@@ -117,8 +118,16 @@ def start_interface():
|
|
117 |
only text as input and produces an image as an output
|
118 |
"""
|
119 |
)
|
120 |
-
model = gr.Textbox(
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
|
123 |
outputs = gr.Image(label="Image")
|
124 |
|
|
|
1 |
import uuid
|
|
|
2 |
|
3 |
import gradio as gr
|
4 |
import pandas as pd
|
5 |
from PIL import Image
|
6 |
from transformers import CLIPModel, CLIPProcessor
|
7 |
|
8 |
+
from comet import get_experiment, get_experiment_status, start_experiment
|
9 |
+
|
10 |
CLIP_MODEL_PATH = "openai/clip-vit-base-patch32"
|
11 |
|
12 |
clip_model = CLIPModel.from_pretrained(CLIP_MODEL_PATH)
|
|
|
118 |
only text as input and produces an image as an output
|
119 |
"""
|
120 |
)
|
121 |
+
model = gr.Textbox(
|
122 |
+
label="Model",
|
123 |
+
value="spaces/valhalla/glide-text2im",
|
124 |
+
placeholder="Enter a path to a Space",
|
125 |
+
)
|
126 |
+
prompt = gr.Textbox(
|
127 |
+
label="Prompt",
|
128 |
+
value="an oil painting of a corgi",
|
129 |
+
placeholder="Enter your text prompt here",
|
130 |
+
)
|
131 |
|
132 |
outputs = gr.Image(label="Image")
|
133 |
|
logging.py β comet.py
RENAMED
File without changes
|