summaryrefslogtreecommitdiffstats
path: root/testing/italygpt2_test.py
diff options
context:
space:
mode:
authorhp256 <971748116@qq.com>2023-05-22 08:00:00 +0200
committerhp256 <971748116@qq.com>2023-05-22 08:00:00 +0200
commitc7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32 (patch)
treedf1984762765b3c9ef9c5fcff304a8998fdd1f98 /testing/italygpt2_test.py
parentadd oraai (diff)
parentMerge pull request #584 from ezerinz/main (diff)
downloadgpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar
gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar.gz
gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar.bz2
gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar.lz
gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar.xz
gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.tar.zst
gpt4free-c7d26ed86719e1aacf2ff44fb10d9f79a3c2ea32.zip
Diffstat (limited to 'testing/italygpt2_test.py')
-rw-r--r--testing/italygpt2_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/italygpt2_test.py b/testing/italygpt2_test.py
new file mode 100644
index 00000000..0494c8a2
--- /dev/null
+++ b/testing/italygpt2_test.py
@@ -0,0 +1,4 @@
+from gpt4free import italygpt2
+account_data=italygpt2.Account.create()
+for chunk in italygpt2.Completion.create(account_data=account_data,prompt="Who are you?"):
+ print(chunk, end="", flush=True) \ No newline at end of file