Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def generate_gradio_app(api_key, image):
|
|
34 |
6. Use gr.Blocks() to create a basic layout that captures the essence of the screenshot.
|
35 |
7. Include the gr.Blocks().launch() call at the end of the code.
|
36 |
8. Provide a runnable Gradio application focusing on the most important aspects of the UI.
|
37 |
-
9. Keep the code concise, aiming for no more than
|
38 |
|
39 |
Please generate the Gradio code based on the provided image, focusing on the most crucial elements to fit within the token limit."""
|
40 |
|
@@ -47,7 +47,7 @@ Please generate the Gradio code based on the provided image, focusing on the mos
|
|
47 |
"content": prompt + f"\n\n<image>\ndata:image/png;base64,{img_str}\n</image>"
|
48 |
}
|
49 |
],
|
50 |
-
max_tokens=
|
51 |
temperature=0.7,
|
52 |
top_p=0.7,
|
53 |
top_k=50,
|
|
|
34 |
6. Use gr.Blocks() to create a basic layout that captures the essence of the screenshot.
|
35 |
7. Include the gr.Blocks().launch() call at the end of the code.
|
36 |
8. Provide a runnable Gradio application focusing on the most important aspects of the UI.
|
37 |
+
9. Keep the code concise, aiming for no more than 2000 tokens.
|
38 |
|
39 |
Please generate the Gradio code based on the provided image, focusing on the most crucial elements to fit within the token limit."""
|
40 |
|
|
|
47 |
"content": prompt + f"\n\n<image>\ndata:image/png;base64,{img_str}\n</image>"
|
48 |
}
|
49 |
],
|
50 |
+
max_tokens=2000,
|
51 |
temperature=0.7,
|
52 |
top_p=0.7,
|
53 |
top_k=50,
|