Update app.py
Browse files
app.py
CHANGED
@@ -33,9 +33,9 @@ def generate_response(prompt):
|
|
33 |
|
34 |
|
35 |
# Function to generate text response from GPT-2 model using Hugging Face API
|
36 |
-
def generate_response(prompt):
|
37 |
-
|
38 |
-
|
39 |
|
40 |
# Extract text from an image using Tesseract
|
41 |
def extract_text_from_image(filepath: str, languages: List[str]):
|
|
|
33 |
|
34 |
|
35 |
# Function to generate text response from GPT-2 model using Hugging Face API
|
36 |
+
# def generate_response(prompt):
|
37 |
+
# response = query({"inputs": prompt})
|
38 |
+
# return response[0]['generated_text']
|
39 |
|
40 |
# Extract text from an image using Tesseract
|
41 |
def extract_text_from_image(filepath: str, languages: List[str]):
|