Commit
·
94ce1a7
1
Parent(s):
d678e76
final deployment v-1.1.7
Browse files
app.py
CHANGED
@@ -12,24 +12,24 @@ host = "127.0.0.1"
|
|
12 |
port = 8081
|
13 |
|
14 |
prompt_format = \
|
15 |
-
|
16 |
|
17 |
-
|
18 |
-
|
19 |
|
20 |
-
|
21 |
-
|
22 |
|
23 |
-
|
24 |
-
|
25 |
|
26 |
-
|
27 |
|
28 |
-
|
29 |
-
|
30 |
|
31 |
-
|
32 |
-
|
33 |
|
34 |
def is_port_in_use(host: str, port: int) -> bool:
|
35 |
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
|
|
12 |
port = 8081
|
13 |
|
14 |
prompt_format = \
|
15 |
+
'''Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
|
16 |
|
17 |
+
## Instruction:
|
18 |
+
Normalize entities in a given sentence, including dates (various formats), currencies (multiple symbols and notations), and scientific units (single and compound). Convert them into their full, standardized textual representations in the same language.
|
19 |
|
20 |
+
### Example Input:
|
21 |
+
15/03/1990 को, वैज्ञानिक ने $120 में 500mg यौगिक का एक नमूना खरीदा।
|
22 |
|
23 |
+
### Example Response:
|
24 |
+
पंद्रह मार्च उन्नीस सौ नब्बे को, वैज्ञानिक ने एक सौ बीस अमेरिकी डॉलर में पाँच सौ मिलीग्राम यौगिक का एक नमूना खरीदा।
|
25 |
|
26 |
+
Just as entities like dates, currencies, and scientific units have been normalized into simple terms, you must do the same. Do not leave any entity un-normalised.
|
27 |
|
28 |
+
## Input:
|
29 |
+
{}
|
30 |
|
31 |
+
## Response:
|
32 |
+
{}'''
|
33 |
|
34 |
def is_port_in_use(host: str, port: int) -> bool:
|
35 |
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|