John6666 commited on
Commit
f0c80f8
·
verified ·
1 Parent(s): bf3d9fc

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +14 -12
  2. app.py +14 -0
  3. requirements.txt +2 -0
README.md CHANGED
@@ -1,12 +1,14 @@
1
- ---
2
- title: Genai Error
3
- emoji: 🦀
4
- colorFrom: green
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 5.21.0
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
1
+ ---
2
+ title: Gemini Photo (bug)
3
+ emoji: 🐢
4
+ colorFrom: yellow
5
+ colorTo: red
6
+ sdk: gradio
7
+ sdk_version: 5.21.0
8
+ app_file: app.py
9
+ pinned: false
10
+ license: apache-2.0
11
+ short_description: Photo edit app
12
+ ---
13
+
14
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ #from google import genai
3
+ #from google.genai import types
4
+
5
+ def generate_image():
6
+ return None
7
+
8
+ with gr.Blocks(title="Image Generation and Editing App") as app:
9
+ generate_button = gr.Button("Generate")
10
+ generated_output = gr.Image(label="Generated Image")
11
+ #generated_output = gr.Textbox(label="Generated Text") # this works
12
+ generate_button.click(fn=generate_image, inputs=None, outputs=[generated_output])
13
+
14
+ app.queue().launch(ssr_mode=False)
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ python-dotenv
2
+ google-genai