Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -9,10 +9,12 @@ OPENAI_API_KEY = os.getenv("open_ai")
|
|
| 9 |
client = OpenAI(api_key=OPENAI_API_KEY, organization=org)
|
| 10 |
|
| 11 |
description = """
|
| 12 |
-
|
| 13 |
|
| 14 |
Details:
|
| 15 |
-
Input: A string containing the input text.
|
|
|
|
|
|
|
| 16 |
Output: A JSON response containing a list of questions and a corresponding list of answers.
|
| 17 |
"""
|
| 18 |
|
|
|
|
| 9 |
client = OpenAI(api_key=OPENAI_API_KEY, organization=org)
|
| 10 |
|
| 11 |
description = """
|
| 12 |
+
# As part of the project, we need to implement a FastAPI endpoint that takes a string as input and returns a list of questions along with their corresponding answers. This endpoint will be used to generate questions from text data.
|
| 13 |
|
| 14 |
Details:
|
| 15 |
+
Input-1: A string containing the input text. (Type: String)
|
| 16 |
+
Input-2: Number of questions (Type: Integer)
|
| 17 |
+
--------------------------------------------
|
| 18 |
Output: A JSON response containing a list of questions and a corresponding list of answers.
|
| 19 |
"""
|
| 20 |
|