Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ from huggingface_hub import InferenceClient
|
|
4 |
import os
|
5 |
import time
|
6 |
import asyncio
|
7 |
-
from pydantic import BaseModel
|
8 |
|
9 |
from pipeline import PromptEnhancer
|
10 |
|
@@ -14,9 +13,7 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
14 |
# client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
15 |
|
16 |
|
17 |
-
async def advancedPromptPipeline(
|
18 |
-
|
19 |
-
input_prompt = payload.text
|
20 |
|
21 |
model="gpt-4o-mini"
|
22 |
|
|
|
4 |
import os
|
5 |
import time
|
6 |
import asyncio
|
|
|
7 |
|
8 |
from pipeline import PromptEnhancer
|
9 |
|
|
|
13 |
# client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
14 |
|
15 |
|
16 |
+
async def advancedPromptPipeline(InputPrompt):
|
|
|
|
|
17 |
|
18 |
model="gpt-4o-mini"
|
19 |
|