Spaces:
Sleeping
Sleeping
hosseinhimself
commited on
Commit
•
e4c5b39
1
Parent(s):
7d06f13
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,3 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
"""Untitled13.ipynb
|
3 |
-
|
4 |
-
Automatically generated by Colab.
|
5 |
-
|
6 |
-
Original file is located at
|
7 |
-
https://colab.research.google.com/drive/1916fw1h61Jt2FokODxZbZXbIRnBrlwM5
|
8 |
-
"""
|
9 |
-
|
10 |
import gradio as gr
|
11 |
|
12 |
from transformers import pipeline
|
@@ -112,7 +103,7 @@ def evaluate(task_type, task_number, question, image):
|
|
112 |
|
113 |
# Create the Gradio interface
|
114 |
inputs = [
|
115 |
-
gr.Dropdown(choices=["Academic", "General"], label="
|
116 |
gr.Dropdown(choices=["Task 1", "Task 2"], label="Task Number", value="Task 1"),
|
117 |
gr.Textbox(label="Question", value=""),
|
118 |
gr.Image(type="pil", label="Upload Image")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
from transformers import pipeline
|
|
|
103 |
|
104 |
# Create the Gradio interface
|
105 |
inputs = [
|
106 |
+
gr.Dropdown(choices=["Academic", "General"], label="Test Type", value="Academic"),
|
107 |
gr.Dropdown(choices=["Task 1", "Task 2"], label="Task Number", value="Task 1"),
|
108 |
gr.Textbox(label="Question", value=""),
|
109 |
gr.Image(type="pil", label="Upload Image")
|