Spaces:
Sleeping
Sleeping
Refactor app.py to use correct class names for image and answer variables
Browse files
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.
|
8 |
question = "Using the standar 9x9 sudoku format, solve the the sudoku puzzle in the image correctly."
|
9 |
|
10 |
-
answer = gr.
|
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"
|