Faustrix commited on
Commit
506dcd4
·
1 Parent(s): 906cc8b

Refactor app.py to use correct class names for image and answer variables

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,10 +4,10 @@ from transformers import pipeline
4
 
5
  pipe = pipeline("visual-question-answering", model="openbmb/MiniCPM-Llama3-V-2_5", trust_remote_code=True)
6
 
7
- image = gr.image(type="pil", label="Image")
8
  question = "Using the standar 9x9 sudoku format, solve the the sudoku puzzle in the image correctly."
9
 
10
- answer = gr.outputs.Textbox(label="Answer", show_label=True, show_copy_button=True)
11
 
12
 
13
  title = "Sudoku Solver by FG"
 
4
 
5
  pipe = pipeline("visual-question-answering", model="openbmb/MiniCPM-Llama3-V-2_5", trust_remote_code=True)
6
 
7
+ image = gr.Image(type="pil", label="Image")
8
  question = "Using the standar 9x9 sudoku format, solve the the sudoku puzzle in the image correctly."
9
 
10
+ answer = gr.Textbox(label="Answer", show_label=True, show_copy_button=True)
11
 
12
 
13
  title = "Sudoku Solver by FG"