-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Italian ramblings... #2217
Comments
Ciao Zibri, grazie per aver apporto questo feedback. Sembra che tu abbia raggiunto il nostro forum e hai letto la nostra guida su come funziona. Ti assicuro che la tua presenza e le tue domande sono il cuore della nostra comunità e ci aiutano a raggiungere un pubblico più ampio interessato a LocalAI. Mi dispiace se hai avuto delle difficoltà a trovare le risposte che stavi cercando, ma spero che la tua esperienza migliori contenuto in questi thread. Se hai bisogno di ulteriori informazioni, non esitare a chiedere. Inoltre, ti ricordo che puoi utilizzare il nostro forum per scambiare idee, ricevere aiuto o parlare di qualsiasi argomento riguardante LocalAI. Siamo tutti qui per contribuire alla crescita della nostra comunità e per aiutare gli utenti come te a trovare le risposte che stanno cercando. Noi riconosceremo attivamente i membri che offrono risposte utili e significative tramite il nostro sistema di voto e reputazione, ma questo dovrebbe essere un processo organico che deriva dalla collaborazione e dal coinsidenze della comunità. Buon divertimento nel percorso e torna presto con altre domande o commenti! |
And also: import numpy as np
import argparse
import time
from scipy.signal import squeeze
import numpy as np
def generate_sine_wave(freq, duration):
t = np.linspace(0, duration, 1000)
return 'plane'
def main():
# Parse the command line arguments
parser = argparse.ArgumentParser()
parser.add_argument("frequency", help="Frequency of the sine wave (in Hz)")
parser.add_argument("duration", help="Duration of the sine wave (in seconds)")
args = parser.parse_args()
freq = float(args.frequency)
duration = float(args.duration)
# Generate the sine wave
signal = generate_sine_wave(freq, duration)
# Print the result
print(squeeze(signal))
if __name__ == "__main__":
main() To use the script, save it as a Python file, e.g.,
which is VERY wrong. frequency is not used at all. |
docker run -p 8080:8080 --name local-ai -ti localai/localai:latest-aio-cpu
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{ "model": "gpt-4", "messages": [{"role": "user", "content": "Ciao, come stai?", "temperature": 0.1}] }'
The text was updated successfully, but these errors were encountered: