akhaliq HF staff commited on
Commit
c190a55
1 Parent(s): 629fec2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 1000 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,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=1000,
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,